package com.dashu.base.enums.common;


public enum AmType {

    SUPERTUBE("超管",1),
    ONE_OPERATORS("运营",2),
    CAMPUS("单位",3),
    PARK("园区",4);


    private String name;
    private long code;

    AmType(String name, long code) {
        this.name = name;
        this.code = code;
    }

    public static AmType getAmType(int code) {
        switch (code) {
            case 1:
               return SUPERTUBE;
            case 2:
                return ONE_OPERATORS;
            case 3:
                return CAMPUS;
            case 4:
                return PARK;
        }
        return null;
    }

}
